package com.cskaoyan.order.form;

import com.cskaoyan.mall.commons.exception.ValidateException;
import com.cskaoyan.mall.commons.result.AbstractRequest;
import com.cskaoyan.order.dto.CartProductDto;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
public class CreateOrderRequest extends AbstractRequest{


    private Long userId;

    @NotNull
    private Long addressId;

    @NotEmpty
    private String tel;

    @NotEmpty
    private String userName;

    @NotEmpty
    private String streetName;

    @NotNull
    private BigDecimal orderTotal;

    @NotEmpty
    List<CartProductDto> cartProductDtoList;//购物车中的商品列表

    private String uniqueKey; //业务唯一id

}
